package com.longk.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController("ttcontoller")
public class TestController {
@RequestMapping("/test")
	public String test() {
		
		
		return "cao!";
	}
@RequestMapping("/test2")
public ModelAndView  test2() {
	
	ModelAndView view = new ModelAndView("/index.btl");
	return view;
}
}
